﻿using MediatR;
using System.ComponentModel.DataAnnotations;
using WMS_Goodsinfo.Api.Read.DTOS;
using WMS_Goodsinfo.ErrorCode;

namespace WMS_Goodsinfo.Api.Read.Application.Command
{
    public class GetProductListCommand:IRequest<ApiPaging<ProductDtoList>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ?ProductName { get; set; }
        /// <summary>
        /// 货品类型(下拉选择)
        /// </summary>
        public string ?ProductTypeId { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitName { get; set; }
        /// <summary>
        ///  条形码
        /// </summary>
        public string ?Barcode { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string ?Inventory { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime ?StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime ?EndTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
    }
}
